3.113 \(\int \frac {3-x^2}{\sqrt {3+x^2-x^4}} \, dx\)

Optimal. Leaf size=96 \[ \sqrt {7+2 \sqrt {13}} F\left (\sin ^{-1}\left (\sqrt {\frac {2}{1+\sqrt {13}}} x\right )|\frac {1}{6} \left (-7-\sqrt {13}\right )\right )-\sqrt {\frac {1}{2} \left (\sqrt {13}-1\right )} E\left (\sin ^{-1}\left (\sqrt {\frac {2}{1+\sqrt {13}}} x\right )|\frac {1}{6} \left (-7-\sqrt {13}\right )\right ) \]

[Out]

-1/2*EllipticE(x*2^(1/2)/(1+13^(1/2))^(1/2),1/6*I*3^(1/2)+1/6*I*39^(1/2))*(-2+2*13^(1/2))^(1/2)+EllipticF(x*2^
(1/2)/(1+13^(1/2))^(1/2),1/6*I*3^(1/2)+1/6*I*39^(1/2))*(7+2*13^(1/2))^(1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.12, antiderivative size = 96, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {1180, 524, 424, 419} \[ \sqrt {7+2 \sqrt {13}} F\left (\sin ^{-1}\left (\sqrt {\frac {2}{1+\sqrt {13}}} x\right )|\frac {1}{6} \left (-7-\sqrt {13}\right )\right )-\sqrt {\frac {1}{2} \left (\sqrt {13}-1\right )} E\left (\sin ^{-1}\left (\sqrt {\frac {2}{1+\sqrt {13}}} x\right )|\frac {1}{6} \left (-7-\sqrt {13}\right )\right ) \]

Antiderivative was successfully verified.

[In]

Int[(3 - x^2)/Sqrt[3 + x^2 - x^4],x]

[Out]

-(Sqrt[(-1 + Sqrt[13])/2]*EllipticE[ArcSin[Sqrt[2/(1 + Sqrt[13])]*x], (-7 - Sqrt[13])/6]) + Sqrt[7 + 2*Sqrt[13
]]*EllipticF[ArcSin[Sqrt[2/(1 + Sqrt[13])]*x], (-7 - Sqrt[13])/6]

Rule 419

Int[1/(Sqrt[(a_) + (b_.)*(x_)^2]*Sqrt[(c_) + (d_.)*(x_)^2]), x_Symbol] :> Simp[(1*EllipticF[ArcSin[Rt[-(d/c),
2]*x], (b*c)/(a*d)])/(Sqrt[a]*Sqrt[c]*Rt[-(d/c), 2]), x] /; FreeQ[{a, b, c, d}, x] && NegQ[d/c] && GtQ[c, 0] &
& GtQ[a, 0] &&  !(NegQ[b/a] && SimplerSqrtQ[-(b/a), -(d/c)])

Rule 424

Int[Sqrt[(a_) + (b_.)*(x_)^2]/Sqrt[(c_) + (d_.)*(x_)^2], x_Symbol] :> Simp[(Sqrt[a]*EllipticE[ArcSin[Rt[-(d/c)
, 2]*x], (b*c)/(a*d)])/(Sqrt[c]*Rt[-(d/c), 2]), x] /; FreeQ[{a, b, c, d}, x] && NegQ[d/c] && GtQ[c, 0] && GtQ[
a, 0]

Rule 524

Int[((e_) + (f_.)*(x_)^(n_))/(Sqrt[(a_) + (b_.)*(x_)^(n_)]*Sqrt[(c_) + (d_.)*(x_)^(n_)]), x_Symbol] :> Dist[f/
b, Int[Sqrt[a + b*x^n]/Sqrt[c + d*x^n], x], x] + Dist[(b*e - a*f)/b, Int[1/(Sqrt[a + b*x^n]*Sqrt[c + d*x^n]),
x], x] /; FreeQ[{a, b, c, d, e, f, n}, x] &&  !(EqQ[n, 2] && ((PosQ[b/a] && PosQ[d/c]) || (NegQ[b/a] && (PosQ[
d/c] || (GtQ[a, 0] && ( !GtQ[c, 0] || SimplerSqrtQ[-(b/a), -(d/c)]))))))

Rule 1180

Int[((d_) + (e_.)*(x_)^2)/Sqrt[(a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4], x_Symbol] :> With[{q = Rt[b^2 - 4*a*c, 2]}
, Dist[2*Sqrt[-c], Int[(d + e*x^2)/(Sqrt[b + q + 2*c*x^2]*Sqrt[-b + q - 2*c*x^2]), x], x]] /; FreeQ[{a, b, c,
d, e}, x] && GtQ[b^2 - 4*a*c, 0] && LtQ[c, 0]

Rubi steps

\begin {align*} \int \frac {3-x^2}{\sqrt {3+x^2-x^4}} \, dx &=2 \int \frac {3-x^2}{\sqrt {1+\sqrt {13}-2 x^2} \sqrt {-1+\sqrt {13}+2 x^2}} \, dx\\ &=\left (5+\sqrt {13}\right ) \int \frac {1}{\sqrt {1+\sqrt {13}-2 x^2} \sqrt {-1+\sqrt {13}+2 x^2}} \, dx-\int \frac {\sqrt {-1+\sqrt {13}+2 x^2}}{\sqrt {1+\sqrt {13}-2 x^2}} \, dx\\ &=-\sqrt {\frac {1}{2} \left (-1+\sqrt {13}\right )} E\left (\sin ^{-1}\left (\sqrt {\frac {2}{1+\sqrt {13}}} x\right )|\frac {1}{6} \left (-7-\sqrt {13}\right )\right )+\sqrt {7+2 \sqrt {13}} F\left (\sin ^{-1}\left (\sqrt {\frac {2}{1+\sqrt {13}}} x\right )|\frac {1}{6} \left (-7-\sqrt {13}\right )\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [C]  time = 0.14, size = 103, normalized size = 1.07 \[ -\frac {i \left (\left (1+\sqrt {13}\right ) E\left (i \sinh ^{-1}\left (\sqrt {\frac {2}{-1+\sqrt {13}}} x\right )|\frac {1}{6} \left (-7+\sqrt {13}\right )\right )-\left (\sqrt {13}-5\right ) F\left (i \sinh ^{-1}\left (\sqrt {\frac {2}{-1+\sqrt {13}}} x\right )|\frac {1}{6} \left (-7+\sqrt {13}\right )\right )\right )}{\sqrt {2 \left (1+\sqrt {13}\right )}} \]

Warning: Unable to verify antiderivative.

[In]

Integrate[(3 - x^2)/Sqrt[3 + x^2 - x^4],x]

[Out]

((-I)*((1 + Sqrt[13])*EllipticE[I*ArcSinh[Sqrt[2/(-1 + Sqrt[13])]*x], (-7 + Sqrt[13])/6] - (-5 + Sqrt[13])*Ell
ipticF[I*ArcSinh[Sqrt[2/(-1 + Sqrt[13])]*x], (-7 + Sqrt[13])/6]))/Sqrt[2*(1 + Sqrt[13])]

________________________________________________________________________________________

fricas [F]  time = 0.42, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {\sqrt {-x^{4} + x^{2} + 3} {\left (x^{2} - 3\right )}}{x^{4} - x^{2} - 3}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-x^2+3)/(-x^4+x^2+3)^(1/2),x, algorithm="fricas")

[Out]

integral(sqrt(-x^4 + x^2 + 3)*(x^2 - 3)/(x^4 - x^2 - 3), x)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int -\frac {x^{2} - 3}{\sqrt {-x^{4} + x^{2} + 3}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-x^2+3)/(-x^4+x^2+3)^(1/2),x, algorithm="giac")

[Out]

integrate(-(x^2 - 3)/sqrt(-x^4 + x^2 + 3), x)

________________________________________________________________________________________

maple [B]  time = 0.11, size = 200, normalized size = 2.08 \[ \frac {18 \sqrt {-\left (-\frac {1}{6}+\frac {\sqrt {13}}{6}\right ) x^{2}+1}\, \sqrt {-\left (-\frac {1}{6}-\frac {\sqrt {13}}{6}\right ) x^{2}+1}\, \EllipticF \left (\frac {\sqrt {-6+6 \sqrt {13}}\, x}{6}, \frac {i \sqrt {3}}{6}+\frac {i \sqrt {39}}{6}\right )}{\sqrt {-6+6 \sqrt {13}}\, \sqrt {-x^{4}+x^{2}+3}}+\frac {36 \sqrt {-\left (-\frac {1}{6}+\frac {\sqrt {13}}{6}\right ) x^{2}+1}\, \sqrt {-\left (-\frac {1}{6}-\frac {\sqrt {13}}{6}\right ) x^{2}+1}\, \left (-\EllipticE \left (\frac {\sqrt {-6+6 \sqrt {13}}\, x}{6}, \frac {i \sqrt {3}}{6}+\frac {i \sqrt {39}}{6}\right )+\EllipticF \left (\frac {\sqrt {-6+6 \sqrt {13}}\, x}{6}, \frac {i \sqrt {3}}{6}+\frac {i \sqrt {39}}{6}\right )\right )}{\sqrt {-6+6 \sqrt {13}}\, \sqrt {-x^{4}+x^{2}+3}\, \left (1+\sqrt {13}\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((-x^2+3)/(-x^4+x^2+3)^(1/2),x)

[Out]

36/(-6+6*13^(1/2))^(1/2)*(1-(-1/6+1/6*13^(1/2))*x^2)^(1/2)*(1-(-1/6-1/6*13^(1/2))*x^2)^(1/2)/(-x^4+x^2+3)^(1/2
)/(1+13^(1/2))*(EllipticF(1/6*x*(-6+6*13^(1/2))^(1/2),1/6*I*3^(1/2)+1/6*I*39^(1/2))-EllipticE(1/6*x*(-6+6*13^(
1/2))^(1/2),1/6*I*3^(1/2)+1/6*I*39^(1/2)))+18/(-6+6*13^(1/2))^(1/2)*(1-(-1/6+1/6*13^(1/2))*x^2)^(1/2)*(1-(-1/6
-1/6*13^(1/2))*x^2)^(1/2)/(-x^4+x^2+3)^(1/2)*EllipticF(1/6*x*(-6+6*13^(1/2))^(1/2),1/6*I*3^(1/2)+1/6*I*39^(1/2
))

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ -\int \frac {x^{2} - 3}{\sqrt {-x^{4} + x^{2} + 3}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-x^2+3)/(-x^4+x^2+3)^(1/2),x, algorithm="maxima")

[Out]

-integrate((x^2 - 3)/sqrt(-x^4 + x^2 + 3), x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.01 \[ -\int \frac {x^2-3}{\sqrt {-x^4+x^2+3}} \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-(x^2 - 3)/(x^2 - x^4 + 3)^(1/2),x)

[Out]

-int((x^2 - 3)/(x^2 - x^4 + 3)^(1/2), x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ - \int \frac {x^{2}}{\sqrt {- x^{4} + x^{2} + 3}}\, dx - \int \left (- \frac {3}{\sqrt {- x^{4} + x^{2} + 3}}\right )\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-x**2+3)/(-x**4+x**2+3)**(1/2),x)

[Out]

-Integral(x**2/sqrt(-x**4 + x**2 + 3), x) - Integral(-3/sqrt(-x**4 + x**2 + 3), x)

________________________________________________________________________________________